﻿package com.obas.type
{
	import com.ease.common.enums.ValuableEnum;
	import com.ease.lang.Enum;
	import com.ease.lang.EnumConstants;
	import com.obas.type.MacAddressType;

	[Bindable]
	[RemoteClass(alias="com.obas.type.MacAddressType")]

	public class MacAddressType extends Enum
	{
		/* static init */
		{ initEnum(MacAddressType); }

		/* Constants */
		public static const DYNAMIC:MacAddressType = new MacAddressType("DYNAMIC", 1);

		private var _value:int;

		/*public*/ function MacAddressType(name:String=null ,value:int=0) {
			super.name = name;
			this._value = value;
		}

		public function get value():int  { return this._value; }

		/* constant query */
		public static function getEnumConstants():Array {
			return Enum.getEnumConstants(MacAddressType);
		}

		public static function get(constantName:String, caseSensitive:Boolean = false):MacAddressType {
			return MacAddressType(Enum.get(MacAddressType, constantName, caseSensitive));
		}
	}
}